﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ScrumTime.Models;
using ScrumTime.ViewModels;
using ScrumTime.Helpers;
using ScrumTime.Services;

namespace ScrumTime.Controllers
{
    public class UtilsController : Controller
    {
        //
        // GET: /Utils/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Export_HU() {
            //exportamos todas las historias de usuario
            StoryCollectionViewModel storyCollectionViewModel = StoryCollectionViewModel.BuildByPriorityAsc(
            SessionHelper.GetCurrentProductId(User.Identity.Name, Session));

            return View(storyCollectionViewModel);
        }


        public ActionResult Export_FullUS()
        {
            //exportamos todas las historias de usuario
            StoryCollectionViewModel storyCollectionViewModel = StoryCollectionViewModel.BuildByPriorityAsc(
            SessionHelper.GetCurrentProductId(User.Identity.Name, Session));

            return View(storyCollectionViewModel);
        }

    }
}
